package demo.thread;

/**
 * @author small瑞
 */
public class ThreadStart01 extends Thread{
    public static void main(String[] args) throws InterruptedException {
        MyThread myThread = new MyThread("倒头就睡。");
        myThread.run();
        MyThread myThread1 = new MyThread("醒来疫情结束。");
        myThread1.run();
        MyThread myThread2 = new MyThread("出门吃火锅、麻辣烫、烧烤、再来一桌麻将。");
        myThread2.run();
        MyThread myThread3 = new MyThread("归来，夕阳刚好。");
        myThread3.run();
    }
}
